<template>
  <view>
    <web-view :src="webUrl"></web-view>
  </view>
</template>

<script>
  export default {
    name: "webView",
    data() {
      return {
        webUrl: '',
        defaultUrl: 'https://www.linqinghu.cn/jisuanqi/index.html'
      }
    },
    onLoad(options) {
      if (options.totalPrice) {
        let url = this.defaultUrl + '?&price=' + options.totalPrice;
        this.webUrl = url;
      } else {
        this.webUrl = this.defaultUrl;
      }
    }
  }
</script>

<style scoped>

</style>